package TestsBuxfer;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;


/**
 * Created with IntelliJ IDEA.
 * User: C13T
 * Date: 12.07.13
 * Time: 19:24
 * To change this template use File | Settings | File Templates.
 */
public class Payments {
    public WebDriver driver;
   // @Test


    public Payments(WebDriver driver){
        this.driver = driver;
    }
    public Payments PaymentsPage(){
        WebElement TabPayments = driver.findElement(By.id("tab-payments"));
        TabPayments.click();
        return new Payments(driver);
    }

    public void CheckContent(){
        WebElement SendMoneyTo = driver.findElement(By.id("payments-input-email-input"));
        //WebElement PaymentsIcon = driver.findElement(By.id("payments-input-tab-ic"));
        //PaymentsIcon.click();
        SendMoneyTo.sendKeys("example@gmail.com");
        String TabPaymentsUrl = driver.getCurrentUrl();
       // Assert.assertEquals(TabPaymentsUrl,"https://www.buxfer.com/home#/payments");

    }
}
